package org.springside.examples.miniweb.entity.cm;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springside.examples.miniweb.entity.IdEntity;

/**
 * Company.
 */
@Entity
@Table(name="c_company"
    ,catalog="crm"
)
public class Company extends IdEntity  {
 
     private String name;
     private String pycode;
     private String code;
     private String grade;
     private String source;
     private String CType;
     private String MType;
     private Integer regionId;
     private String regionName;
     private String province;
     private String city;
     private String fax;
     private String postcode;
     private String tel1;
     private String tel2;
     private String mobile;
     private String email;
     private String web;
     private String address;
     private String dealing;
     private String scale;
     private String registerMoney;
     private String kind;
     private String trade;
     private String legalPerson;
     private String bank;
     private String account;
     private String taxCode;
     private Character buyFlag;
     private String creater;
     private Date createTime;
     private String updater;
     private Date updateTime;
     private String status;
     private String remark;
     private int ownerUsr;
     private Date nextTouchDate;
     private Date nextServiceDate;
     private Date firstTouchDate;
     private Date lastTouchDate;
     private String nextTouchAim;
     private String dispensePerson;
     private Date dispenseDate;
     private Integer applyUserId;
     private String SPerson;
     private String SReason;
     private Date SDate;
     private String planCallbackReason;
     private Date planCallbackDate;
     private Character curLinkFlag;
     private Character curBuyFlag;
     private Integer freezeLeaveDay;
     private String custom1;
     private String custom2;
     private String custom3;
     private String custom4;
     private String choice1;
     private String choice2;
     private String choice3;
     private String choice4;
     private Date time1;
     private Date time2;
     private Character shareFlag;
     private String shareIds;
     private String quality;

    public Company() {
    }

	
    public Company(String name, String CType, String MType, int ownerUsr) {
        this.name = name;
        this.CType = CType;
        this.MType = MType;
        this.ownerUsr = ownerUsr;
    }
   
    
    @Column(name="name", nullable=false, length=100)
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="pycode", length=100)
    public String getPycode() {
        return this.pycode;
    }
    
    public void setPycode(String pycode) {
        this.pycode = pycode;
    }
    
    @Column(name="code", length=50)
    public String getCode() {
        return this.code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    
    @Column(name="grade", length=100)
    public String getGrade() {
        return this.grade;
    }
    
    public void setGrade(String grade) {
        this.grade = grade;
    }
    
    @Column(name="source", length=100)
    public String getSource() {
        return this.source;
    }
    
    public void setSource(String source) {
        this.source = source;
    }
    
    @Column(name="c_type", nullable=false, length=10)
    public String getCType() {
        return this.CType;
    }
    
    public void setCType(String CType) {
        this.CType = CType;
    }
    
    @Column(name="m_type", nullable=false, length=10)
    public String getMType() {
        return this.MType;
    }
    
    public void setMType(String MType) {
        this.MType = MType;
    }
    
    @Column(name="region_id")
    public Integer getRegionId() {
        return this.regionId;
    }
    
    public void setRegionId(Integer regionId) {
        this.regionId = regionId;
    }
    
    @Column(name="region_name", length=100)
    public String getRegionName() {
        return this.regionName;
    }
    
    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }
    
    @Column(name="province", length=50)
    public String getProvince() {
        return this.province;
    }
    
    public void setProvince(String province) {
        this.province = province;
    }
    
    @Column(name="city", length=50)
    public String getCity() {
        return this.city;
    }
    
    public void setCity(String city) {
        this.city = city;
    }
    
    @Column(name="fax", length=50)
    public String getFax() {
        return this.fax;
    }
    
    public void setFax(String fax) {
        this.fax = fax;
    }
    
    @Column(name="postcode", length=50)
    public String getPostcode() {
        return this.postcode;
    }
    
    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }
    
    @Column(name="tel1", length=50)
    public String getTel1() {
        return this.tel1;
    }
    
    public void setTel1(String tel1) {
        this.tel1 = tel1;
    }
    
    @Column(name="tel2", length=50)
    public String getTel2() {
        return this.tel2;
    }
    
    public void setTel2(String tel2) {
        this.tel2 = tel2;
    }
    
    @Column(name="mobile", length=50)
    public String getMobile() {
        return this.mobile;
    }
    
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    
    @Column(name="email", length=100)
    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    @Column(name="web", length=200)
    public String getWeb() {
        return this.web;
    }
    
    public void setWeb(String web) {
        this.web = web;
    }
    
    @Column(name="address", length=200)
    public String getAddress() {
        return this.address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }
    
    @Column(name="dealing", length=100)
    public String getDealing() {
        return this.dealing;
    }
    
    public void setDealing(String dealing) {
        this.dealing = dealing;
    }
    
    @Column(name="scale", length=100)
    public String getScale() {
        return this.scale;
    }
    
    public void setScale(String scale) {
        this.scale = scale;
    }
    
    @Column(name="register_money", length=50)
    public String getRegisterMoney() {
        return this.registerMoney;
    }
    
    public void setRegisterMoney(String registerMoney) {
        this.registerMoney = registerMoney;
    }
    
    @Column(name="kind", length=100)
    public String getKind() {
        return this.kind;
    }
    
    public void setKind(String kind) {
        this.kind = kind;
    }
    
    @Column(name="trade", length=100)
    public String getTrade() {
        return this.trade;
    }
    
    public void setTrade(String trade) {
        this.trade = trade;
    }
    
    @Column(name="legal_person", length=50)
    public String getLegalPerson() {
        return this.legalPerson;
    }
    
    public void setLegalPerson(String legalPerson) {
        this.legalPerson = legalPerson;
    }
    
    @Column(name="bank", length=100)
    public String getBank() {
        return this.bank;
    }
    
    public void setBank(String bank) {
        this.bank = bank;
    }
    
    @Column(name="account", length=100)
    public String getAccount() {
        return this.account;
    }
    
    public void setAccount(String account) {
        this.account = account;
    }
    
    @Column(name="tax_code", length=100)
    public String getTaxCode() {
        return this.taxCode;
    }
    
    public void setTaxCode(String taxCode) {
        this.taxCode = taxCode;
    }
    
    @Column(name="buy_flag", length=1)
    public Character getBuyFlag() {
        return this.buyFlag;
    }
    
    public void setBuyFlag(Character buyFlag) {
        this.buyFlag = buyFlag;
    }
    
    @Column(name="creater", length=50)
    public String getCreater() {
        return this.creater;
    }
    
    public void setCreater(String creater) {
        this.creater = creater;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="create_time", length=19)
    public Date getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    @Column(name="updater", length=50)
    public String getUpdater() {
        return this.updater;
    }
    
    public void setUpdater(String updater) {
        this.updater = updater;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="update_time", length=19)
    public Date getUpdateTime() {
        return this.updateTime;
    }
    
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
    @Column(name="status", length=10)
    public String getStatus() {
        return this.status;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }
    
    @Column(name="remark", length=65535)
    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }
    
    @Column(name="owner_usr", nullable=false)
    public int getOwnerUsr() {
        return this.ownerUsr;
    }
    
    public void setOwnerUsr(int ownerUsr) {
        this.ownerUsr = ownerUsr;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="next_touch_date", length=19)
    public Date getNextTouchDate() {
        return this.nextTouchDate;
    }
    
    public void setNextTouchDate(Date nextTouchDate) {
        this.nextTouchDate = nextTouchDate;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="next_service_date", length=19)
    public Date getNextServiceDate() {
        return this.nextServiceDate;
    }
    
    public void setNextServiceDate(Date nextServiceDate) {
        this.nextServiceDate = nextServiceDate;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="first_touch_date", length=19)
    public Date getFirstTouchDate() {
        return this.firstTouchDate;
    }
    
    public void setFirstTouchDate(Date firstTouchDate) {
        this.firstTouchDate = firstTouchDate;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="last_touch_date", length=19)
    public Date getLastTouchDate() {
        return this.lastTouchDate;
    }
    
    public void setLastTouchDate(Date lastTouchDate) {
        this.lastTouchDate = lastTouchDate;
    }
    
    @Column(name="next_touch_aim", length=500)
    public String getNextTouchAim() {
        return this.nextTouchAim;
    }
    
    public void setNextTouchAim(String nextTouchAim) {
        this.nextTouchAim = nextTouchAim;
    }
    
    @Column(name="dispense_person", length=50)
    public String getDispensePerson() {
        return this.dispensePerson;
    }
    
    public void setDispensePerson(String dispensePerson) {
        this.dispensePerson = dispensePerson;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="dispense_date", length=19)
    public Date getDispenseDate() {
        return this.dispenseDate;
    }
    
    public void setDispenseDate(Date dispenseDate) {
        this.dispenseDate = dispenseDate;
    }
    
    @Column(name="apply_user_id")
    public Integer getApplyUserId() {
        return this.applyUserId;
    }
    
    public void setApplyUserId(Integer applyUserId) {
        this.applyUserId = applyUserId;
    }
    
    @Column(name="s_person", length=50)
    public String getSPerson() {
        return this.SPerson;
    }
    
    public void setSPerson(String SPerson) {
        this.SPerson = SPerson;
    }
    
    @Column(name="s_reason", length=500)
    public String getSReason() {
        return this.SReason;
    }
    
    public void setSReason(String SReason) {
        this.SReason = SReason;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="s_date", length=19)
    public Date getSDate() {
        return this.SDate;
    }
    
    public void setSDate(Date SDate) {
        this.SDate = SDate;
    }
    
    @Column(name="plan_callback_reason", length=500)
    public String getPlanCallbackReason() {
        return this.planCallbackReason;
    }
    
    public void setPlanCallbackReason(String planCallbackReason) {
        this.planCallbackReason = planCallbackReason;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="plan_callback_date", length=19)
    public Date getPlanCallbackDate() {
        return this.planCallbackDate;
    }
    
    public void setPlanCallbackDate(Date planCallbackDate) {
        this.planCallbackDate = planCallbackDate;
    }
    
    @Column(name="cur_link_flag", length=1)
    public Character getCurLinkFlag() {
        return this.curLinkFlag;
    }
    
    public void setCurLinkFlag(Character curLinkFlag) {
        this.curLinkFlag = curLinkFlag;
    }
    
    @Column(name="cur_buy_flag", length=1)
    public Character getCurBuyFlag() {
        return this.curBuyFlag;
    }
    
    public void setCurBuyFlag(Character curBuyFlag) {
        this.curBuyFlag = curBuyFlag;
    }
    
    @Column(name="freeze_leave_day")
    public Integer getFreezeLeaveDay() {
        return this.freezeLeaveDay;
    }
    
    public void setFreezeLeaveDay(Integer freezeLeaveDay) {
        this.freezeLeaveDay = freezeLeaveDay;
    }
    
    @Column(name="custom1", length=100)
    public String getCustom1() {
        return this.custom1;
    }
    
    public void setCustom1(String custom1) {
        this.custom1 = custom1;
    }
    
    @Column(name="custom2", length=100)
    public String getCustom2() {
        return this.custom2;
    }
    
    public void setCustom2(String custom2) {
        this.custom2 = custom2;
    }
    
    @Column(name="custom3", length=100)
    public String getCustom3() {
        return this.custom3;
    }
    
    public void setCustom3(String custom3) {
        this.custom3 = custom3;
    }
    
    @Column(name="custom4", length=100)
    public String getCustom4() {
        return this.custom4;
    }
    
    public void setCustom4(String custom4) {
        this.custom4 = custom4;
    }
    
    @Column(name="choice1", length=100)
    public String getChoice1() {
        return this.choice1;
    }
    
    public void setChoice1(String choice1) {
        this.choice1 = choice1;
    }
    
    @Column(name="choice2", length=100)
    public String getChoice2() {
        return this.choice2;
    }
    
    public void setChoice2(String choice2) {
        this.choice2 = choice2;
    }
    
    @Column(name="choice3", length=100)
    public String getChoice3() {
        return this.choice3;
    }
    
    public void setChoice3(String choice3) {
        this.choice3 = choice3;
    }
    
    @Column(name="choice4", length=100)
    public String getChoice4() {
        return this.choice4;
    }
    
    public void setChoice4(String choice4) {
        this.choice4 = choice4;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="time1", length=19)
    public Date getTime1() {
        return this.time1;
    }
    
    public void setTime1(Date time1) {
        this.time1 = time1;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="time2", length=19)
    public Date getTime2() {
        return this.time2;
    }
    
    public void setTime2(Date time2) {
        this.time2 = time2;
    }
    
    @Column(name="share_flag", length=1)
    public Character getShareFlag() {
        return this.shareFlag;
    }
    
    public void setShareFlag(Character shareFlag) {
        this.shareFlag = shareFlag;
    }
    
    @Column(name="share_ids", length=500)
    public String getShareIds() {
        return this.shareIds;
    }
    
    public void setShareIds(String shareIds) {
        this.shareIds = shareIds;
    }
    
    @Column(name="quality", length=100)
    public String getQuality() {
        return this.quality;
    }
    
    public void setQuality(String quality) {
        this.quality = quality;
    }
}


